<?php
/*require_once("sso.php");

$sso = new SingleSignOn_Broker();

if (!empty($_GET['logout'])) {
    $sso->logout();
	
} elseif ($sso->getInfo() || ($_SERVER['REQUEST_METHOD'] == 'POST' && $sso->login())) {
    header("Location: ../index.php", true, 303);
    exit;
}

if ($_SERVER['REQUEST_METHOD'] == 'POST') $errmsg = "Login failed";*/

?>

<html>
	<head>
		<title>Single Sign-On demo - Login</title>
        <link rel="stylesheet" href="../css/fcb-style.css" type="text/css" media="all"/>
        <link rel="stylesheet" href="../css/layout.css" type="text/css" media="all">
        <link rel="stylesheet" href="../css/reset.css" type="text/css" media="all">
        <link rel="stylesheet" type="text/css" href="../css/style.css" media="screen"/>
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
	</head>
	<body>
		<!-- header -->
        <header>
            <div class="auth-header-content">
                <div class="left">
                    <div class="logo-content">
                        <img src="../images/logo.png"/>
                    </div>
            		<h1 class="header-title"><a href="index.php"><span>Freecarbids Version 2.0</span></a></h1>
            	</div>
            <div class="right">
            	<div class="lock-icon">
                    <img src="../images/locking.png"/>
                </div>
                <h1 class="header-right"><a href="#"><span>Single Sign On</span></a></h1>
            </div>
            </div>
        </header>
        <div class="sub-header">Enter your User ID and Password to Sign in</div> 
        
    	<!-- content -->
        <div id="body-container">
        	<div class="left">
            	<ul>
                	<li class="setting-li-label"><a class="login-a" href="#">Sign Up Now!</a></li>
                    <li class="setting-li-label"><a class="login-a" href="#">Need Help?</a></li>
                    <li class="setting-li-label"><a class="login-a" href="#">Modify your Account</a></li>
                    <li class="setting-li-label"><a class="login-a" href="#">Synchronize your Password</a></li>
                    <li class="setting-li-label"><a class="login-a" href="#">Forgot your User ID?</a></li>
                    <li class="setting-li-label"><a class="login-a" href="#">Forgot your Paassword?</a></li>
                </ul>
            </div>
            <div class="center">
            	<div class="sign-header-main">Enter your User ID & Password</div>
                <div class="sign-header-sub">Now that we've directed you to the optimal server, please enter your User ID & Password</div>
                <div class="welcome-slide"><img src="../images/welcome-slide.png"/></div>
            </div>
            <div class="right" id="logpanel">
                <div style="padding-bottom:15px; padding-top:10px"><h1>SSO Sign In</h1></div>
                <? if (isset($errmsg)): ?>
                <div style="color:red"><?= $errmsg ?></div><? endif; ?>
                    <form id="sign-in-form" action="login.php" method="POST">
                        <fieldset>
                            <div class="field text"><label>User ID:</label><input type="text" id="username" name="username"></div>
                            <div class="field text"><label>Password:</label><input type="password" id="password" name="password"></div>
                            <!--<div class="alignright"><a href="#" class="link4" onClick="document.getElementById('contacts-form').reset()"><span><span>Clear</span></span></a><a href="#" class="link2" onClick="document.getElementById('contacts-form').submit()"><span><span>Send</span></span></a></div>-->
                            <div class="field text"><label></label><input type="image" id="signin" name="signin" src="../images/login-submit.png" onClick="document.getElementById('contacts-form').submit()"></div>
                        </fieldset>
                    </form>
                <div class="help">Help</div>
                <div class="blueLabel"><a class="login-a" href="#">How to get access</a></div>
                <div class="blueLabel"><a class="login-a" href="#">User ID FAQs</a></div>
            </div>
        </div>
        
        <!-- footer -->
        <footer>
            <div class="container">
                <div class="sub-bottom">YOU HAVE ACCESSED A PRIVTE FACILITY. IF YOU ARE NOT AUTHORIZED TO USE THE FACILITY OR YOU HAVE BEEN INADVERTENTLY CONNECTED. PLEASE DISCONNECT NOW. <br>
                INTERNATIONAL AND UNAUTHORIZED ACCESS TO THIS NETWORK AND THE DATA HERE IN IS PROHIBITED AND WILL BE SUBJECT TO PROSECUTION. 		<br>
                
                </div> 
               	<div class="inside">
                    <a rel="nofollow" href="#" class="new_window">Copyright 2012 - All Right Reserved</a><br>
                </div>
            </div>
        </footer>
	</body>
</html>